package com.kate.mall.order.price.coupon;
import com.kate.mall.order.dto.CouponDTO;
import com.kate.mall.order.dto.OrderDTO;
import java.math.BigDecimal;
/**
 * @Description: 优惠券抵扣金额计算接口
 * @Auther: 新梦想*陈超
 * @Date: 2021/10/30 19:35
 */
public interface CouponCalculator {

	/**
	 * 计算优惠券对当前订单的抵扣金额
	 * @param order 订单
	 * @param coupon 优惠券
	 * @return 抵扣金额
	 * @throws Exception
	 */
	BigDecimal calculate(OrderDTO order, CouponDTO coupon) throws Exception;

}
